package com.woniuxy.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;

/**
 * @author:deng
 * @time:2022/4/26 17:18
 * @描述：新增试卷的实体类
 */

public class PaperAttribute {

    private int id;
    private Date updateTime;
    private String updater;
    private int isDeleted;
    private String name;
    private String type;
    private String difficulty;
    private int papercategory;//
    private String note;
    private List<PaperCategor> paperCategor;

    private List<PaperObject> paperObjects;

    private List<Integer> paperIds;//用来批量删除时
    private int fid;//主要是用于查询时，只根据父级分类的id查询，没有具体的分类id

    public PaperAttribute(int id, Date updateTime, String updater, int isDeleted, String name, String type, String difficulty, int papercategory, String note, List<PaperCategor> paperCategor, List<PaperObject> paperObjects, List<Integer> paperIds, int fid) {
        this.id = id;
        this.updateTime = updateTime;
        this.updater = updater;
        this.isDeleted = isDeleted;
        this.name = name;
        this.type = type;
        this.difficulty = difficulty;
        this.papercategory = papercategory;
        this.note = note;
        this.paperCategor = paperCategor;
        this.paperObjects = paperObjects;
        this.paperIds = paperIds;
        this.fid = fid;
    }

    @Override
    public String toString() {
        return "PaperAttribute{" +
                "id=" + id +
                ", updateTime=" + updateTime +
                ", updater='" + updater + '\'' +
                ", isDeleted=" + isDeleted +
                ", name='" + name + '\'' +
                ", type='" + type + '\'' +
                ", difficulty='" + difficulty + '\'' +
                ", papercategory=" + papercategory +
                ", note='" + note + '\'' +
                ", paperCategor=" + paperCategor +
                ", paperObjects=" + paperObjects +
                ", paperIds=" + paperIds +
                ", fid=" + fid +
                '}';
    }

    public int getFid() {
        return fid;
    }

    public void setFid(int fid) {
        this.fid = fid;
    }


    public List<PaperObject> getPaperObjects() {
        return paperObjects;
    }

    public void setPaperObjects(List<PaperObject> paperObjects) {
        this.paperObjects = paperObjects;
    }

    public PaperAttribute() {
    }


    public List<Integer> getPaperIds() {
        return paperIds;
    }

    public void setPaperIds(List<Integer> paperIds) {
        this.paperIds = paperIds;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getUpdater() {
        return updater;
    }

    public void setUpdater(String updater) {
        this.updater = updater;
    }

    public int getIsDeleted() {
        return isDeleted;
    }

    public void setIsDeleted(int isDeleted) {
        this.isDeleted = isDeleted;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getDifficulty() {
        return difficulty;
    }

    public void setDifficulty(String difficulty) {
        this.difficulty = difficulty;
    }

    public int getPapercategory() {
        return papercategory;
    }

    public void setPapercategory(int papercategory) {
        this.papercategory = papercategory;
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }

    public List<PaperCategor> getPaperCategor() {
        return paperCategor;
    }

    public void setPaperCategor(List<PaperCategor> paperCategor) {
        this.paperCategor = paperCategor;
    }


}
